<template>
  <div id="app">
    <h1>{{ msg }}</h1>
    <input type="text" v-model="msg">
    <img :src="url">
  </div>
</template>

<script>
import url from './img/logo.png'
import getData from './util';

export default {
  name: 'app',
  data () {
    return {
      msg: 'Welcome to Your Vue.js',
      url,
    }
  },
  created() {
    this.fetchData();
  },
  methods: {
    //  async fetchData() {
    //   const data = await getData();
    //   this.msg = data;
    // }
    fetchData(){
      this.$axiosPlus('/customer/account/overview', 'get').then((res)=>{
        console.log(res);
      });
    }
  }
}
</script>

<style lang="scss">
#app {
  font-family: "Avenir", Helvetica, Arial, sans-serif;

  h1 {
    color: green;
  }
}
</style>